

public class MainTest 
{
    /*
    public static void main(String [] args){
//      Element a = Element.Water;
//      System.out.print(a.strength());
//      a = Element.Lightning;
//      System.out.print(a.strength());
//      a = Element.Wind;
//      System.out.print(a.strength());
//      a = Element.Fire;
//      System.out.print(a.strength());
//      //a = Monster.Boss.type();
//      System.out.print(a.strength());
//      //ComputerPlayer b = new ComputerPlayer(0,0);
//      System.out.print(a.damageModifier(a, a));
//      //MapSquare m = new MapSquare();
//      int x = 0;
//      int y = 0;
//      Mob c = MobCreator.Grunt(x,y);
//      System.out.println(c.elemType); 
//      c = dm.FireElemental1(x,y);
//      System.out.println(c.displayName);
//      c = dm.FireElemental2(x,y);
//      System.out.println(c.displayName);
//      Player p = new Player();
//      p.maxHP = 10;
        //Player o = (Player)GameObject.gameObjects.get(0);
        //GameObject o = new GameObject();
        //GameObject.gameObjects = new Vector<GameObject>();
        //SpellCreator sc = new SpellCreator();
        long start = System.currentTimeMillis();

//      for(int i = 0; i < 13; i++)
//      {
//          for(int j = 0; j < 13; j++)
//          {
//              if((i==0||j==0||i==12||j==12))
//              {
//                  //create a new object at (i,j)
//                  if ((i!=6&&j!=6))
//                  {
//                      GameObject.gameObjects.add(BoundaryCreator.rock(i, j));
//                  }
//                  else
//                  {
//                      GameObject.gameObjects.add(new Exit(null,i, j, 6, 6));
//                  }
//              }
//          }
//      }
//      Player player = new Player(7,7);
//      GameObject.gameObjects.add(player);     
//      GameObject.gameObjects.add(MobCreator.FireTurret(3, 7, Direction.Right));
//      GameObject.gameObjects.add(MobCreator.Grunt(7, 9));
//      
        Player player = new Player(7,7);
        GameObject.player = player;
        MapSquare[][] map = new MapSquare[13][13];
        for(int i = 0; i < 13; i++)
        {
            for(int j = 0; j < 13; j++)
            {
                map[i][j] = new MapSquare();
                if((i==0||j==0||i==12||j==12))
                {
                    //create a new object at (i,j)
                    if ((i!=6&&j!=6))
                    {
                        map[i][j].gameObject = BoundaryCreator.rock(i, j);
                    }
                    else
                    {
                        map[i][j].gameObject = new Exit(null,i, j, 6, 6);
                    }
                }
            }
        }
        map[3][7].gameObject = MobCreator.FireTurret(3, 7, Direction.Right);
        GameObject.loadNewMap(map);     
        GameObject.gameObjects.add(MobCreator.Grunt(7, 9));
        
        for(int i = 0; i < 12 ; i++)
        {
        GameObject.updateAll();
        GameObject.printGame();
        System.out.println(player.currentHP+"/"+player.maxHP);
        }
        System.out.println();
                
        long end = System.currentTimeMillis();              
        System.out.println((end-start));
        

    }
    */
}
